package com.itv.email.bean;

import javax.mail.Session;

/**
 * User: bjxiajun
 * Date: 14-5-20
 * Time: 上午11:20
 * 邮箱客户端属性
 */
public class EmailClient {
    private String address;
    private String pwd;
    private Session session;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }
    public String getName(){
        return address.split("@")[0];
    }

    public Session getSession() {
        return session;
    }

    public void setSession(Session session) {
        this.session = session;
    }
}
